﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraCharts;
using TuongLaiDangCho.DAO;

namespace TuongLaiDangCho.Enterface
{
    public partial class ucChar : DevExpress.XtraEditors.XtraUserControl
    {
        public ucChar()
        {
            InitializeComponent();
        }
        //public static void LoadChar()
        //{
           //if (chaThoiGian.Series.Count > 0)
        //    {
        //        chaThoiGian.BeginInit();
        //        Series series;
        //        series = chaThoiGian.Series[0];
        //        series.Points.Clear();
        //        DataTable dt = QuanLiThoiGianDAO.LoadChar();
        //        for (int i = 0; i < 3; i++)
        //        {
        //            series.Points.Add(new SeriesPoint(i + 1, dt.Rows[0][i]));
        //        }
        //        series.Points[0].Argument = "Hữu Ích";
        //        series.Points[1].Argument = "Không Hữu Ích";
        //        series.Points[2].Argument = "Không Tên";
        //        chaThoiGian.EndInit();
        //    }
        //}

        private void ucChar_Load(object sender, EventArgs e)
        {
            frmHome.LoadChar();
        }
    }
    
}
